package edu.byu.isys413.samlam;

/**
 * The super-class of all business objects in the program.
 *
 * @author Conan C. Albrecht
 */
public abstract class BusinessObject {
    
  boolean objectAlreadyInDB = false;
  protected String id = null;
  protected boolean dirty = false;

  /** Creates a new instance of BusinessObject */
  public BusinessObject() {
  }//constructor

  public String getId() {
      return id;
  }

  public void setId(String id) {
      this.id = id;
  }

  boolean isObjectAlreadyInDB() {
    return objectAlreadyInDB;
  }

  void setObjectAlreadyInDB(boolean objectAlreadyInDB) {
    this.objectAlreadyInDB = objectAlreadyInDB;
  }

    public boolean isDirty() {
        return dirty;
    }

    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

}//class
